package com.texplose.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : lyj
 * @Timer : 2022/5/18
 * @Description :
 * 食谱表对应实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Recipe implements Serializable {
    private int id;

    private String img;

    private String title;

    private Date createTime;

    private String detail;

    /**
     * 发布者用户id
     */
    private int userId;

    /**
     * 是否是轮播图
     */
    private int isSwiper;

    /**
     * 点赞数
     */
    private int likes;

    /**
     * 分类id
     */
    private int categoryId;

    /**
     * 浏览量
     */
    private int views;


    public Recipe(int id, int views) {
        this.id = id;
        this.views = views;
    }
}
